package com.sky.service.user.impl;

import com.sky.mapper.user.UserDishMapper;
import com.sky.service.user.UserDishService;
import com.sky.vo.DishVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserDishServiceImpl implements UserDishService {

    @Autowired
    private UserDishMapper userDishMapper;



    /**
     * 根据分类id查询菜品
     *
     * @param categoryId
     */
    @Override
    public List<DishVO> selectDish(Integer categoryId) {
        return userDishMapper.selectDish(categoryId);
    }
}
